package com.zhigh.test.testuinit.sty.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class Order implements Serializable {
    @Size(min = 3, max = 6)
    private String name;
    @Min(1)
    @Max(4)
    private Integer count;
    @Digits(integer = 5, fraction = 2)
    private BigDecimal price;
}
